//
//  MJExtensionConfig.m
//  One
//
//  Created by mac on 16-5-20.
//  Copyright (c) 2016年 mac. All rights reserved.
//

#import "MJExtensionConfig.h"
#import "MusicModleObject.h"
#import "MovieObject.h"
#import "musicCommentsModelObject.h"
#import "MusicByMonth.h"
//#import "CarouselDAO.h"
//#import "EssayObject.h"
//#import "AuthorObject.h"
//#import "SerialOnject.h"


@implementation MJExtensionConfig

+ (void)loadData
{
//    [CarouselObject mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
//    return @{
//              @"ID":@"id"
//              };
//    }];
    
//    [EssayObject mj_setupObjectClassInArray:^NSDictionary *{
//        return @{@"author":@"AuthorObject"};
//    }];
//    
//    [SerialOnject mj_setupObjectClassInArray:^NSDictionary *{
//        return @{@"author":@"AuthorObject"};
//    }];
//    
//    [SerialOnject mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
//        return @{
//                 @"ID":@"id"
//                 };
//    }];
    
    
    
    [MusicModleObject mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{
                 @"ID":@"id",
                 @"user_id":@"author.user_id",
                 @"user_name":@"author.user_name",
                 @"author_web_url":@"author.web_url",
                 @"desc":@"author.desc",
                 @"auhtor_user_id":@"author.user_id",
                 @"author_user_name":@"author.user_name",
                 @"story_user_id":@"story_author.user_id",
                 @"story_user_name":@"story_author.user_name",
                 @"story_web_url":@"story_author.web_url"
                 };
    }];
    
    [musicCommentsModelObject mj_setupObjectClassInArray:^NSDictionary *{
        return @{
                 @"data":@"musicCommentsObject"
                 };
    }];
    
    [musicCommentsObject mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{
                 @"Id":@"id",
                 @"user_id":@"user.user_id",
                 @"user_name":@"user.user_name",
                 @"web_url":@"user.web_url"
                 };
    }];
    
    [MusicByMonth mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{
                 
                 @"ID" : @"id",
                 @"user_id":@"author.user_id",
                 @"user_name":@"author.user_name",
                 @"web_url":@"author.web_url",
                 @"desc":@"author.desc"
                 
                 };
    }];
    
    [MovieListObject mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return  @{
                  @"ID":@"id"
                  };
    }];
    
    [MovieStroyObject mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{
                 @"ID":@"id",
                 @"user_id":@"user.user_id",
                 @"user_name":@"user.user_name",
                 @"web_url":@"user.web_url"
                 };
    }];
    
    
    [MovieComment mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{
                 @"ID":@"id",
                 @"user_id":@"user.user_id",
                 @"user_name":@"user.user_name",
                 @"web_url":@"user.web_url"
                 };
    }];
    
//    [MovieDetailObject mj_setupObjectClassInArray:^NSDictionary *{
//        return @{
//            @"photo":[NSArray Class]
//        };
//    }];
    
}



@end
